Skip to content

Comments

Step 0: Clear Pending Trades + Unit Test#1

Open
Dsl03 wants to merge 17 commits intomainfrom
Step-0
Open

Step 0: Clear Pending Trades + Unit Test#1
Dsl03 wants to merge 17 commits intomainfrom
Step-0

Conversation

@Dsl03
Copy link
Owner

@Dsl03 Dsl03 commented Oct 12, 2023

What is the purpose of this PR?

I updated the updateRisk function to avoid including previously counted trades by clearing the pendingTrades vector.

What changes did you make? Why?
Cleared the pending trades vector after updating risk.

What bugs did you find while testing?
Trades added to pending trades were being added to total risk every time risk is updated. Risk should only be counted once.

What was the bug you found?
Trades added to pending trades were still considered "pending" even after updating risk, so future updates to risk would still count all the previously pending trades.

How did you address it?
Cleared pending trades vector after updating risk.

What did you struggle with?
Getting started and not putting it off. Also setting up my CMake since it had some issues, but I resolved those.

Is there anything you would change about this step?
N/A

Copy link

@minnce minnce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants